async function m() {
  console.log(0)
  const n = await 1
  console.log(n)
}

(async function () {
  await m()
  console.log(2)
})()

console.log(3)

